package com.spark.incoicings.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spark.incoicings.dao.OrderDetailMapper;
import com.spark.incoicings.service.OrderDetailService;
import com.spark.invoicings.entity.OrderDetail;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {

    @Resource
    private OrderDetailMapper orderDetailMapper;

    @Override
    public List<OrderDetail> selectOrderDetails() {
        return orderDetailMapper.selectOrderDetails();
    }

    @Override
    public List<OrderDetail> selectOrderDetailsSalesByIds(Integer id) {
        return orderDetailMapper.selectOrderDetailsSalesByIds(id);
    }
}
